import request from "@/utils/request";
export function insertTemplate(data) {
  return request({
    url: "/content-template/insert",
    method: "post",
    data: data
  });
}
export function updateTemplate(data) {
  return request({
    url: "/content-template/update",
    method: "post",
    data: data
  });
}
export function deleteTemplate(data) {
  return request({
    url: "/content-template/delete",
    method: "post",
    data: data
  });
}
export function deletesTemplate(data) {
  return request({
    url: "/content-template/deletes",
    method: "post",
    data: data
  });
}
export function enableTemplate(data) {
  return request({
    url: "/content-template/enable",
    method: "post",
    data: data
  });
}
export function enablesTemplate(data) {
  return request({
    url: "/content-template/enables",
    method: "post",
    data: data
  });
}
export function disableTemplate(data) {
  return request({
    url: "/content-template/disable",
    method: "post",
    data: data
  });
}
export function disablesTemplate(data) {
  return request({
    url: "/content-template/disables",
    method: "post",
    data: data
  });
}
export function viewTemplate(params) {
  return request({
    url: "/content-template/view",
    method: "get",
    params: params
  });
}
export function pageTemplate(params) {
  return request({
    url: "/content-template/page",
    method: "get",
    params: params
  });
}
export function searchTemplate(params) {
  return request({
    url: "/content-template/search",
    method: "get",
    params: params
  });
}
